package com.zjj.learn.designmodel.principles.demo2.after;

/** 定义一个长方形，实现四边形接口
 * *** @author zjj_admin
 * *** 2022/4/4 23:29
 */
public class Rectangle  implements Quadrilateral{

    private double length;
    private double width;

    public void setLength(double length) {
        this.length = length;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    @Override
    public double getLength() {
        return this.length;
    }

    @Override
    public double getWidth() {
        return this.width;
    }
}
